package com.sdgakj.repository;

import com.sdgakj.entity.FeedTag;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface FeedTagDao extends PagingAndSortingRepository<FeedTag, Long>, JpaSpecificationExecutor<FeedTag> {

	@Query("from  FeedTag s where s.state = ?1")
	List<FeedTag> findTagByState(int state);
	
	List<FeedTag> findAllByOrderBySeqAsc();
	
}
